package com.aruba.provider.service.impl;

import com.aruba.bean.User;
import com.aruba.rmi.service.UserService;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import java.util.Arrays;
import java.util.List;

public class UserServiceImpl extends UnicastRemoteObject implements UserService {
    public UserServiceImpl() throws RemoteException {
    }

    @Override
    public List<User> getUserList() throws RemoteException {
        List<User> list = Arrays.asList(new User("张三", "123"),
                new User("李四", "456"));

        return list;
    }
}
